//
//  HotlineView.swift
//  xgwjinterconnection
//
//  Created by WangWeiShuo on 2025/8/18.
//

import SwiftUI

struct HotlineView: View {
    @Environment(\.dismiss) var dismiss
    
    var body: some View {
        
        VStack(){
            WikaNavigationView(showBackIcon: true, title: NSLocalizedString("mine_hotline", comment: "服务热线"),onBack: {
                dismiss() }).frame(maxHeight: 65)
            
            NavigationLink() {
                
                
            } label: {
                HStack {
                    Image(systemName: "headphones")
                        .foregroundColor(.gray)
                    Text(NSLocalizedString("hotline", comment: "热线电话")).foregroundColor(.black)
                    Spacer()
                    Text("400-110-9999").foregroundColor(.black)
                }
                .padding()
                .background(Color.white)
                .cornerRadius(8)
                .shadow(color: Color.gray.opacity(0.2), radius: 4, x: 0, y: 2)
                .padding(.horizontal, 16)
                .padding(.top,-25)
            }
            
            NavigationLink() {
                
            } label: {
                HStack {
                    Image(systemName: "network")
                        .foregroundColor(.gray)
                    Text(NSLocalizedString("service_website", comment: "服务网址")).foregroundColor(.black)
                    Spacer()
                    Text("https://www.xcmg.com").foregroundColor(.black)
                }
                .padding()
                .background(Color.white)
                .cornerRadius(8)
                .shadow(color: Color.gray.opacity(0.2), radius: 4, x: 0, y: 2)
                .padding(.horizontal, 16)
                .padding(.top, 8)
            }
            Spacer()
        }
        .navigationTitle("")
        .navigationBarHidden(true)
        .enableSwipeBackGesture()
    }
}


#Preview {
    HotlineView()
}
